<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router) {
    //随访任务列表
    $router->get('task', '\catchAdmin\registration\controller\Task@index');
    //条件查询患者
    $router->get('task/get_patient', '\catchAdmin\registration\controller\Task@get_patient');
    //创建随访任务
    $router->post('task/save', '\catchAdmin\registration\controller\Task@save');
    //发送问卷
    $router->post('task/push', '\catchAdmin\registration\controller\Task@push');
    //我的随访患者
    $router->get('my_follow_patient', '\catchAdmin\registration\controller\Task@my_follow_patient');
    //我的随访任务
    $router->get('myfollow', '\catchAdmin\registration\controller\Myfollow@index');
    //统计当前随访人员任务状态
    $router->get('myfollow_status_count', '\catchAdmin\registration\controller\Myfollow@myfollow_status_count');
    //获取随访人员
    $router->get('get_follow_personnel', '\catchAdmin\registration\controller\Task@get_follow_personnel');
    //条件查询随访患者统计
    $router->get('get_patient_statistics', '\catchAdmin\registration\controller\Task@get_patient_statistics');
    //条件查询随访患者统计筛选
    $router->any('get_patient_stati_screen', '\catchAdmin\registration\controller\Task@get_patient_stati_screen');
    //条件查询随访患者统计筛选列表
    $router->any('get_patient_stati_screen_list', '\catchAdmin\registration\controller\Task@get_patient_stati_screen_list');
    //操作任务状态
    $router->post('task/start_task', '\catchAdmin\registration\controller\Task@start_task');
    //随访任务详情统计
    $router->get('my_follow_statistics', '\catchAdmin\registration\controller\Task@my_follow_statistics');
    //我的随访任务名称
    $router->get('my_taskname', '\catchAdmin\registration\controller\Myfollow@my_taskname');
    //删除随访任务患者
    $router->post('task/del_task_personnel', '\catchAdmin\registration\controller\Task@del_task_personnel');
    //患者详情-随访记录
    $router->post('task/patient_follow_record', '\catchAdmin\registration\controller\Task@patient_follow_record');
    //获取随访任务绑定的问卷模板
    $router->post('myfollow/get_follow_template', '\catchAdmin\registration\controller\Myfollow@get_follow_template');
    //获取随访任务绑定的短信模板
    $router->post('myfollow/get_follow_sms', '\catchAdmin\registration\controller\Myfollow@get_follow_sms');
    //随访结果字典
    $router->resource('flresult', '\catchAdmin\registration\controller\Flresult');
    $router->resource('ClinicalFollow', \catchAdmin\registration\controller\ClinicalFollowUp::class);
    $router->post('getHomeOfTheMobile', '\catchAdmin\registration\controller\Flresult@getHomeOfTheMobile');
    //获取随访结果数据
    $router->get('get_follow_result', '\catchAdmin\registration\controller\Flresult@get_follow_result');
    //电话随访结果
    $router->post('myfollow/tel_follow_result', '\catchAdmin\registration\controller\Myfollow@tel_follow_result');
    //删除随访计划任务
    $router->post('task/del_task', '\catchAdmin\registration\controller\Task@del_task');
    //编辑随访计划任务
    $router->post('task/edit_task', '\catchAdmin\registration\controller\Task@edit_task');
    //随访任务详细统计
    $router->get('task_detailed_statistics', '\catchAdmin\registration\controller\Task@task_detailed_statistics');
    //随访任务图表统计
    $router->get('task_detailed_chart', '\catchAdmin\registration\controller\Task@task_detailed_chart');
    //获取来电信息
    $router->post('myfollow/incoming_tel_info', '\catchAdmin\registration\controller\Myfollow@incoming_tel_info');
    //获取患者随访历史
    $router->post('myfollow/patien_follow_history', '\catchAdmin\registration\controller\Myfollow@patien_follow_history');
    //科室随访统计
    $router->post('task/department_follow_statistics', '\catchAdmin\registration\controller\Task@department_follow_statistics');
    //科室随访统计详情-
    $router->post('task/department_follow_statistics_detailed', '\catchAdmin\registration\controller\Task@department_follow_statistics_detailed');
    //个人随访统计
    $router->post('task/personal_follow_statistics', '\catchAdmin\registration\controller\Task@personal_follow_statistics');
    //个人随访统计详情
    $router->post('task/personal_follow_statistics_detailed', '\catchAdmin\registration\controller\Task@personal_follow_statistics_detailed');
    //获取全部随访任务
    $router->get('get_tasks', '\catchAdmin\registration\controller\Task@get_tasks');
    //随访表单统计
    $router->post('task/form_follow_statistics', '\catchAdmin\registration\controller\Task@form_follow_statistics');
    //随访路径保存电话结果
    $router->post('automaticPushTel', '\catchAdmin\registration\controller\Myfollow@automaticPushTel');

    //临床实验随访
    $router->resource('trialFollow', '\catchAdmin\registration\controller\TrialFollow');
    //临床实验随访-获取号码维护数据
    $router->any('getTrialFamilyMobile', '\catchAdmin\registration\controller\TrialFollow@getTrialFamilyMobile');
    //临床实验随访-患者基本信息
    $router->any('getTrialPatientInfo', '\catchAdmin\registration\controller\TrialFollow@getTrialPatientInfo');
    //临床实验随访-获取随访结果数据
    $router->any('getTrialFollowResult', '\catchAdmin\registration\controller\TrialFollow@getTrialFollowResult');
    //导出
    $router->any('/trialFollows/export', '\catchAdmin\registration\controller\TrialFollow@export');

    //模拟推消息
    $router->get('smsTest', '\catchAdmin\registration\controller\Task@smstest');

    //获取最新一次随访记录
    $router->any('getLatestFollowRecord', '\catchAdmin\registration\controller\Task@getLatestFollowRecord');

    //临床试验记录打印操作日志
    $router->post('trialPrintLog', '\catchAdmin\registration\controller\TrialFollow@trialPrintLog');
    
    //临床试验审批
    $router->post('approval', '\catchAdmin\registration\controller\TrialFollow@approval');
    
    //获取全局配置随访周期
    $router->get('getFollowCycle', '\catchAdmin\registration\controller\Task@getFollowCycle');

    //随访详情导出
    $router->post('task/export', '\catchAdmin\registration\controller\Task@exports');

    $router->post('task/taskExports', '\catchAdmin\registration\controller\Task@taskExports');

    $router->post('task/myFollowExports', '\catchAdmin\registration\controller\Task@myFollowExports');

    //电话随访上一位下一位
    $router->any('phoneFollowNext', '\catchAdmin\registration\controller\Myfollow@phoneFollowNext');

    //修改随访记录
    $router->post('modifyTelFollowResult', '\catchAdmin\registration\controller\Myfollow@modifyTelFollowResult');

    //获取随访记录详情
    $router->any('getTelFollowResultDetails', '\catchAdmin\registration\controller\Myfollow@getTelFollowResultDetails');

    //失访患者列表
    $router->resource('lostFollow', '\catchAdmin\registration\controller\LostFollow');

    //撤销失访患者
    $router->post('revokeLostPatient', '\catchAdmin\registration\controller\LostFollow@revokeLostPatient');

    //预随访患者统计
    $router->post('preFollowPatientList', '\catchAdmin\registration\controller\Task@preFollowPatientList');

    //失访统计图
    $router->any('chartLostStatistics', '\catchAdmin\registration\controller\LostFollow@chartLostStatistics');

    //失访患者导出
    $router->post('lost/export', '\catchAdmin\registration\controller\LostFollow@exports');

    //随访计划批量搜索计划名称
    $router->any('batchFuzzyTaskname', 'catchAdmin\registration\controller\Task@batchFuzzyTaskname');

    //院内随访进展统计
    $router->any('inHospitalFollowTumourType', 'catchAdmin\registration\controller\Report@inHospitalFollowTumourType');
    $router->any('inHospitalFollowEligible', 'catchAdmin\registration\controller\Report@inHospitalFollowEligible');
    $router->any('followModeDistributionChart', 'catchAdmin\registration\controller\Report@followModeDistributionChart');
    $router->any('invalidFollowReasonChart', 'catchAdmin\registration\controller\Report@invalidFollowReasonChart');

    //我的患者分布特征
    $router->any('patientDiseaseNatureAnalysis', 'catchAdmin\registration\controller\Report@patientDiseaseNatureAnalysis');
    $router->any('patientMalignantTumorsDistribution', 'catchAdmin\registration\controller\Report@patientMalignantTumorsDistribution');

    //患者发病特点及影响因素
    $router->any('ageAndGexderFeatureAnalysis', 'catchAdmin\registration\controller\Report@ageAndGexderFeatureAnalysis');
    $router->any('diseaseAndRegionFeatureAnalysis', 'catchAdmin\registration\controller\Report@diseaseAndRegionFeatureAnalysis');

    //患者生存情况及影响因素
    $router->any('overallSurvivalAnalysis', 'catchAdmin\registration\controller\Report@overallSurvivalAnalysis');
    $router->any('diseaseTypeKmAnalysis', 'catchAdmin\registration\controller\Report@diseaseTypeKmAnalysis');
    $router->any('deptKmAnalysis', 'catchAdmin\registration\controller\Report@deptKmAnalysis');
    $router->any('doctorKmAnalysis', 'catchAdmin\registration\controller\Report@doctorKmAnalysis');

    //电话接通率统计
    $router->any('telCompletionRateAnalysis', 'catchAdmin\registration\controller\Report@telCompletionRateAnalysis');

    //随访工作量统计
    $router->any('followWorkloadAnalysis', 'catchAdmin\registration\controller\Report@followWorkloadAnalysis');

    //随访方式统计-电话
    $router->any('telephoneMethodAnalysis', 'catchAdmin\registration\controller\Report@telephoneMethodAnalysis');

    //暂存随访
    $router->any('stagingFollow', 'catchAdmin\registration\controller\Myfollow@stagingFollow');
    //撤销暂存随访
    $router->any('revokeStagingFollow', 'catchAdmin\registration\controller\Myfollow@revokeStagingFollow');
    
    //问卷患者信息
    $router->any('getQuestPatientInfo', 'catchAdmin\registration\controller\Myfollow@getQuestPatientInfo');

    //随访消息配置
    $router->resource('followMessage', \catchAdmin\registration\controller\FollowMessage::class);
    $router->get('follow_message_dic', '\catchAdmin\registration\controller\FollowMessage@follow_message_dic');

    //随访消息绑定列表
    $router->get('bd_index', '\catchAdmin\registration\controller\FollowMessage@bd_index');
    $router->post('fm/bd_save', '\catchAdmin\registration\controller\FollowMessage@bd_save');
    $router->post('fm/bd_update', '\catchAdmin\registration\controller\FollowMessage@bd_update');
    $router->post('fm/bd_delete', '\catchAdmin\registration\controller\FollowMessage@bd_delete');

})->middleware('auth');
$router->post('upload_record', '\catchAdmin\registration\controller\Flresult@uploadRecord');
